let obj = {
    name: '钟总',
    age: 18,
    like: {
      n: '金铲铲'
    },
    a: true,
    b: null,
    c: undefined,
    d: Infinity,
    e: -Infinity,
    f: NaN,
    g: Symbol(1),
    // h: 123n,
    i: function() {}
  }


  obj.c = obj.like
  obj.like.n = obj.c


//   let str = JSON.stringify(obj)//将对象变成字符串
  let res = JSON.parse(JSON.stringify(obj))//将字符串变成对象
  obj.like.n = '王者'

  console.log(res);
  console.log(obj);
  
  
  